<template>
  <h1>计数器6:{{this.$store.getters.countText("次")}}</h1>
  <button @click="increment">增加</button>
</template>
<script>
import {mapGetters} from 'vuex'
export default {
  methods:{
    increment(){
      this.$store.commit({type:'increment3',count:3})
    },
    computed: mapGetters(["countText"])
  }
}
</script>